﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConceptionLogiciel_Devoir1
{
    class Vehicule
    {
        private String noSerie;
        private String immatriculation;
        private String marque;
        private String modele;
        private int annee;
        private int kilometrage;
        private Disponibilite disponibilite;
     
        // Constructor
        // -------------------------------------------------------------------------------
        public Vehicule(String _noSerie, String _immatriculation, String _marque, 
                        String _modele, int _annee, int _kilometrage)
        {
            this.noSerie = _noSerie;
            this.immatriculation = _immatriculation;
            this.marque = _marque;
            this.modele = _modele;
            this.annee = _annee;
            this.kilometrage = _kilometrage;
            this.disponibilite = new Disponibilite();
        }

        public Vehicule(Vehicule _vehicule)
        {
            this.noSerie = _vehicule.noSerie;
            this.immatriculation = _vehicule.immatriculation;
            this.marque = _vehicule.marque;
            this.modele = _vehicule.modele;
            this.annee = _vehicule.annee;
            this.kilometrage = _vehicule.kilometrage;
            this.disponibilite = _vehicule.disponibilite;
        }

        // Getters && setters
        // -------------------------------------------------------------------------------
        public String Marque
        {
            get { return marque;}
            set { this.marque = value;}
        }

        public String Modele
        {
            get { return modele; }
            set { this.modele = value; }
        }

        public int Annee
        {
            get { return annee; }
            set { this.annee = value; }
        }

        public String Immatriculation
        {
            get { return immatriculation; }
            set { this.immatriculation = value; }
        }

        public String NoSerie
        {
            get { return noSerie; }
            set { this.noSerie = value; }
        }

        public int Kilometrage
        {
            get { return kilometrage; }
            set { this.kilometrage = value; }
        }

        public Disponibilite Disponibilite
        {
            get { return disponibilite; }
            set { this.disponibilite = value; }
        }

        public override string ToString()
        {
            return this.marque + " " + this.modele + " " + this.annee.ToString();
        }

    } // End class Vehicule
} // End namespace devoir3_conception_location
